package com.tengju.data.infrastructure.repository.clickhouse.convert;

import com.tengju.data.domain.model.clickhouse.BrandAnalysisM;
import com.tengju.data.domain.model.clickhouse.BrandId;
import com.tengju.data.infrastructure.persistence.mybatis.dataobject.BrandAnalysisMVO;

/**
 * @author chenhang
 * @Date 2021/3/18
 */
public class BrandAnalysisConvert {
    public static BrandAnalysisM toModel(BrandAnalysisMVO brandAnalysisMVO) {
        return new BrandAnalysisM(
                new BrandId(brandAnalysisMVO.getBrandId()),
                brandAnalysisMVO.getBrandName(),
                brandAnalysisMVO.getMMoneyOut(),
                brandAnalysisMVO.getMonth(),
                brandAnalysisMVO.getVisitDate()
        );
    }
}
